package com.my.service;

import java.util.List;

import com.my.entity.Employee;
import com.my.entity.EmployeeExample;
import com.my.entity.Page;
import com.my.entity.ResponseData;

public interface EmployeeService {
    int deleteByPrimaryKey(Long id);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Employee record);
    
    List<Employee> selectByExample(EmployeeExample example);
    //↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
    /**
     * 根据员工名得到上级的名称
     * @param name
     * @return
     */
    Employee queryManagerEmployeeName(String name);
    
    Employee login(String name,String password);
    
    Employee queryByName(String name);
    int register(Employee record,String updateEmp,String[] hobbys);
    
    
    ResponseData<Employee> selectAllEmpForPage(Page page);
    
    Employee queryDetailById(Long id);
    
    List<Employee> queryIsDeleteEmp();
}